<script setup lang="ts">
import { getQclRightData } from '@/api/Quancheng';

// 声明emits以避免Vue 3警告
defineEmits(['postMessage']);

const currentPlayerAddr = ref('');
const realCameraType = ref('');
onMounted(async () => {
  const { data } = await getQclRightData({ type: 'video' });
  currentPlayerAddr.value = data.aiVideo[0].code;
  realCameraType.value = data.aiVideo[0].cameraType;
});
</script>

<template>
  <div class="video-box">
    <videoComManagement
      id="LaserGimbal"
      :value="currentPlayerAddr"
      :video-type="'3'"
      :camera-index-code="currentPlayerAddr"
      :camera-type="realCameraType"
    />
  </div>
</template>

<style scoped lang="scss">
.video-box {
  width: 400px;
  height: 360px;
}
</style>
